﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ADO.NET.Samples.Common
{
    /// <summary>
    /// Which contains the info of a form object
    /// </summary>
    public sealed class FormInfo
    {
        /// <summary>
        /// Form title
        /// </summary>
        public string FormTitle
        {
            get;
            set;
        }

        /// <summary>
        /// Form Description
        /// </summary>
        public string FormDesc
        {
            get;
            set;
        }

        public string FormType
        {
            get;
            set;
        }

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="title">form title</param>
        /// <param name="desc">form description</param>
        /// <param name="type">form type</param>
        public FormInfo(string title, string desc, string type)
        {
            this.FormTitle = title;
            this.FormDesc = desc;
            this.FormType = type;
        }

        /// <summary>
        /// Constructor : Description of the form is null
        /// </summary>
        /// <param name="title"></param>
        /// <param name="type"></param>
        public FormInfo(string title, string type)
            : this(title, string.Empty, type)
        {
        }
    }
}
